/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fh.model;

import fh.component.DateParser;
import java.sql.Date;

/**
 *
 * @author Dikkehein
 */
public class Event {

    private int id;
    private String name;
    private int min_rating;
    private int max_rating;
    private Date date;
    private String type;
    private int table_cap;
    private int entry_fee;
    private int max_players;
    private int location_id;
    private int player_id;

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the min_rating
     */
    public int getMin_rating() {
        return min_rating;
    }

    /**
     * @param min_rating the min_rating to set
     */
    public void setMin_rating(int min_rating) {
        this.min_rating = min_rating;
    }

    /**
     * @return the max_rating
     */
    public int getMax_rating() {
        return max_rating;
    }

    /**
     * @param max_rating the max_rating to set
     */
    public void setMax_rating(int max_rating) {
        this.max_rating = max_rating;
    }

    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the table_cap
     */
    public int getTable_cap() {
        return table_cap;
    }

    /**
     * @param table_cap the table_cap to set
     */
    public void setTable_cap(int table_cap) {
        this.table_cap = table_cap;
    }

    /**
     * @return the entry_fee
     */
    public int getEntry_fee() {
        return entry_fee;
    }

    /**
     * @param entry_fee the entry_fee to set
     */
    public void setEntry_fee(int entry_fee) {
        this.entry_fee = entry_fee;
    }

    /**
     * @return the max_players
     */
    public int getMax_players() {
        return max_players;
    }

    /**
     * @param max_players the max_players to set
     */
    public void setMax_players(int max_players) {
        this.max_players = max_players;
    }

    /**
     * @return the location_id
     */
    public int getLocation_id() {
        return location_id;
    }

    /**
     * @param location_id the location_id to set
     */
    public void setLocation_id(int location_id) {
        this.location_id = location_id;
    }

    /**
     * @return the player_id
     */
    public int getPlayer_id() {
        return player_id;
    }

    /**
     * @param player_id the player_id to set
     */
    public void setPlayer_id(int player_id) {
        this.player_id = player_id;
    }

    @Override
    public String toString() {
        String date = DateParser.mySqlDateToString(this.date);
        String representation = this.name + " | " + date + " | " + this.max_players + " | " + this.entry_fee;

        return representation;
    }
}
